package bird;

/**
 * 麻雀
 * Created by Frank on 2017/8/28.
 */

public class Sparrow extends Bird {

    @Override
    public void fly() {
    }

    // 获取到的是麻雀速度 50
    public double getVelocity() {
        return velocity;
    }

    /**
     * 设置速度为50
     *
     * @param velocity 速度
     */
    public void setVelocity(double velocity) {
        this.velocity = 50;
    }


}
